var q6 ="#fUI/RunnerGame.img/RunnerGameUI/UI/Point/1#"
var q1 ="#fUI/SoulUI.img/DungeonMap/icon/dungeonItem/0#"
var zh5 ="#fUI/Gateway.img/WorldSelect/BtDot/normal/0#"  


var status = 0;

function start() {
	status = -1;
	action(1, 0, 0);
}

function action(mode, type, selection) {
	if (mode == -1) {
		cm.dispose();
	} else {
		if (mode == 0 && status == 0) {
			cm.dispose();
			return;
		}
		if (mode == 1)
			status++;
		else
			status--;
		if (status == 0) {
        	var text="#e#r "+"      " +q6+"   请认真选择以下套装   "+q6+" #n\r\n";
			text+="#b#L43#"+zh5+"#r200级神秘之影#b[战士系列防具套装]#l\r\n";
			text+="#b#L44#"+zh5+"#r200级神秘之影#b[法师系列防具套装]#l\r\n";
			text+="#b#L45#"+zh5+"#r200级神秘之影#b[飞侠系列防具套装]#l\r\n";
			text+="#b#L46#"+zh5+"#r200级神秘之影#b[弓箭系列防具套装]#l\r\n";
			text+="#b#L47#"+zh5+"#r200级神秘之影#b[海盗系列防具套装]#l\r\n";
			text+="#b#L48#"+zh5+"#r神秘谢尔德#b[武器/副刀]#l\r\n";
			cm.sendSimple(text);
		} else if (status == 1){
			switch (selection) {
				case 43:
				cm.dispose();
				cm.openNpc(0, "200级战士套装");
				break;
				case 44:
				cm.dispose();
				cm.openNpc(0, "200级法师套装");
				break;
				case 45:
				cm.dispose();
				cm.openNpc(0, "200级飞侠套装");
				break;	
				case 46:
				cm.dispose();
				cm.openNpc(0, "200级弓箭套装");
				break;
				case 47:
				cm.dispose();
				cm.openNpc(0, "200级海盗套装");
				break;
				case 48:
				cm.dispose();
				cm.openNpc(0, "200级武器_副刀");
				break;
				default:
				cm.sendOk("管理员正在准备中.请期待");
				cm.dispose();
			}
		}
	}
}